/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package sk.uniba.fmph.asdf.gui;

import com.alee.extended.image.WebImage;
import com.alee.laf.label.WebLabel;
import javax.swing.ImageIcon;

/**
 *
 * @author mt
 */
public class GuiUtils {

    public static final String TITLE = "Sladek";

    /**
     * Vrati ikonu pre dany graficky subor
     * @param name nazov suboru (bez pripony)
     * @return ikona obrazku
     */
    public static ImageIcon getIcon(final String name) {
        return new ImageIcon("res/ico/" + name + ".png");
    }

    /**
     * Vrati WebImage pre dany graficky subor
     * @param name nazov suboru (bez pripony)
     * @return ikona obrazku
     */
    public static WebImage getImage(final String name) {
        return new WebImage(getIcon(name));
    }

    /**
     * Vrati tienovany popis s danym textom
     * @param name popis
     * @return tienovany popis
     */
    public static WebLabel getShadedLabel(final String name) {
        WebLabel shadedLabel = new WebLabel(name);
        shadedLabel.setDrawShade(true);
        return shadedLabel;
    }

}
